package com.wujing.OOP



object MemState {


  def main(args: Array[String]): Unit = {
    val p = new Person

    p.name="jack"
    p.age=12

    val p2= p
    println(p2==p)
    p.name="tom"

    println(p2.name)

  }

}

class Person{
  var name=""
  var age:Int=_
}
